using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Thaire.Investment.Domains.Master
{
   
    public class ReferenceCode 
    {
        #region Properties
              // REFERENCE_CODE_ID
        public virtual int ID { set; get; }
      // REFERENCE_CODE_DOMAIN
        public virtual String Domain { set; get; }
      // REFERENCE_CODE_KEY
        public virtual String Key { set; get; }
      // REFERENCE_CODE_VALUE_TH
        public virtual String ValueTH { set; get; }
      // REFERENCE_CODE_VALUE_EN
        public virtual String ValueEN { set; get; }
        public virtual String  Hold { get; set; }
        #endregion

        

        public override bool Equals(object obj)
        {
            if(obj == null)
                return false;
            if(obj.GetType() != typeof(ReferenceCode) && !(obj is ReferenceCode))
                return false;
            return ToString().Equals(obj.ToString());
        }

        public override int GetHashCode()
        {
            return ToString().GetHashCode();
        }

        public override string ToString()
        {
            return string.Format("{0}",ID);
        }


       
    }


}